package com.git.bds.mr.hospital.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 科室表
 * </p>
 *
 * @author 成大事
 * @since 2022-09-19 16:43:59
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sector")
@ApiModel(value = "Sector对象", description = "科室表")
public class Sector extends Model<Sector> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("hospital_id")
    private Long hospitalId;

    @ApiModelProperty("科室名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("科室简介")
    @TableField("synopsis")
    private String synopsis;


    public static final String ID = "id";

    public static final String HOSPITAL_ID = "hospital_id";

    public static final String NAME = "name";

    public static final String SYNOPSIS = "synopsis";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
